package beans.factorys;

import beans.BeansException;

/**
 * Created by ZhaiGuaili on 2018/7/3.
 */
public class BeanCreationException extends BeansException{

    private String beanName;

    public BeanCreationException(String msg){
        super(msg);
    }

    public BeanCreationException(String beanName,String msg){
        super("error creat bean with name "+ beanName + " : "+msg);
        this.beanName = beanName;
    }

    public BeanCreationException(String beanName,String msg,Throwable throwable){
        this(beanName,msg);
        initCause(throwable);
    }

    public String getBeanName(){
        return this.beanName;
    }





}
